import { required } from '@/utils/formRules'
const formData = ref({})
const formRef = ref()

const formRules = ref({
	<%_ for(var i = 0; i < formConfig.fields.length; i++){ _%>
		<%_ if(formConfig.fields[i].required){ _%>
		<%= formConfig.fields[i].name %>: [required('<%= ['select', 'radio', 'checkbox','date','dateRange','cascader','any'].includes(formConfig.fields[i].type) ? '请选择' : formConfig.fields[i].type === 'file' ? '请上传' : '请输入' %><%= formConfig.fields[i].label %>')],
		<%_ } _%>
	<%_ } _%>
})


